<template>
  <div class="gutter-example">
    <CloudRow :gutter="16">
      <CloudCol class="gutter-row" :span="6">
        <div class="gutter-box">col-6</div>
      </CloudCol>
      <CloudCol class="gutter-row" :span="6">
        <div class="gutter-box">col-6</div>
      </CloudCol>
      <CloudCol class="gutter-row" :span="6">
        <div class="gutter-box">col-6</div>
      </CloudCol>
      <CloudCol class="gutter-row" :span="6">
        <div class="gutter-box">col-6</div>
      </CloudCol>
    </CloudRow>
  </div>
</template>
<script>
export default {
  title: '6.区块间隔',
  subTitle: '栅格常常需要和间隔进行配合，你可以使用 Row 的 gutter 属性，我们推荐使用 (16+8n)px 作为栅格间隔。(n 是自然数)如果要支持响应式，可以写成 { xs: 8, sm: 16, md: 24, lg: 32 }。如果需要垂直间距，可以写成数组形式 [水平间距, 垂直间距] [16, { xs: 8, sm: 16, md: 24, lg: 32 }]。',
  data() {
    return {}
  },
  methods: {

  }
}
</script>

<style lang="scss" scoped>
.ant-row-flex > div,
.ant-row > div {
  padding: 5px 0;
  text-align: center;
  border-radius: 0;
  min-height: 30px;
  margin-top: 8px;
  margin-bottom: 8px;
  color: #fff;
}
.gutter-box {
  background: #00a0e9;
  padding: 5px 0;
}
</style>